package com.autotest.nore.controller;


import com.autotest.nore.request.CaseApiIndexRequest;
import com.autotest.nore.service.CaseApiIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/autotest/caseApiIndex")
public class CaseApiIndexController {
    @Autowired
    private CaseApiIndexService caseApiIndexService;

    @PostMapping("/save")
    public void saveCaseApi(@RequestBody CaseApiIndexRequest caseApiIndexRequest){
        caseApiIndexService.saveCaseApiIndex(caseApiIndexRequest);
    }


}
